package com.common.pojo.detail;

import java.io.Serializable;
import java.util.Date;

public class Record implements Serializable {
    public enum Type {INCOME, EXPENSE}

    private int id;
    private Type type;
    private String category;
    private double amount;
    private Date date;
    private String note;

    public Record(int id, Type type, String category, double amount, Date date, String note) {
        this.id = id;
        this.type = type;
        this.category = category;
        this.amount = amount;
        this.date = date;
        this.note = note;
    }

    // Getters
    public int getId() {
        return id;
    }

    public Type getType() {
        return type;
    }

    public double getAmount() {
        return amount;
    }

    public Date getDate() {
        return date;
    }

    public String getCategory() {
        return category;
    }

    public String getNote() {
        return note;
    }
}
